<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Train extends Model
{
    protected $fillable=['train_name','train_picture','train_intro','train_rules','train_data','train_address',
    'counts','train_price', 'train_classify'];

        public function trainorders()
    {
        return $this->hasMany(TrainOrder::class);
    }
}